import request from "@/utils/request";

// 查询样衣退货记录列表
export function listSampleReturn(query) {
  return request({
    url: "/product/sampleReturn/list",
    method: "get",
    params: query,
  });
}

// 查询样衣退货记录详细
export function getSampleReturn(id) {
  return request({
    url: "/product/sampleReturn/" + id,
    method: "get",
  });
}

// 新增样衣退货记录
export function addSampleReturn(data) {
  return request({
    url: "/product/sampleReturn",
    method: "post",
    data: data,
  });
}
// 新增样衣退货记录
export function checkReturningOrder(data) {
  return request({
    url: "/product/sampleReturn/checkReturningOrder",
    method: "post",
    data: data,
  });
}
// 新增样衣退货记录
export function aftersaleNoInfoUpload(data) {
  return request({
    url: "/product/sampleReturn/aftersaleNoInfoUpload",
    method: "post",
    data: data,
  });
}
// 新增样衣退货记录
export function additionalReturnRecord(data) {
  return request({
    url: "/product/sampleReturn/additionalReturnRecord",
    method: "post",
    data: data,
  });
}
// 新增样衣退货记录
export function selectReturnRecordList(data) {
  return request({
    url: "/product/sampleReturn/selectReturnRecordList",
    method: "post",
    data: data,
  });
}
// 新增样衣退货记录
export function BorderOfficialCancelALL(id) {
  return request({
    url: "/Kuaidi100/BorderOfficialCancelALL/" + id,
    method: "post",
    // data: data
  });
}
// 修改样衣退货记录
export function updateSampleReturn(data) {
  return request({
    url: "/product/sampleReturn",
    method: "put",
    data: data,
  });
}

// 删除样衣退货记录
export function delSampleReturn(id) {
  return request({
    url: "/product/sampleReturn/" + id,
    method: "delete",
  });
}
// 新增样衣退货记录
export function BorderOfficialCancel(id) {
  return request({
    url: "/Kuaidi100/BorderOfficialCancel/" + id,
    method: "post",
    // data: data
  });
}
